package com.zl.learning.io.zip.zip;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
//        File source = new File("D:\\BaiduNetdiskDownload\\1.rar");
//        FileType type = ZipUtils.getFileType(source);
//        System.out.println(type);
//        ZipUtils.decompressRAR(source, "D:\\BaiduNetdiskDownload\\1", false);
//        ZipUtils.decompressZip("D:\\data\\人脸2.zip","UTF-8","D:\\data\\test");
        ZipUtils.decompressZip("D:\\data\\init\\人脸.zip","GBK","D:\\data\\init");
//        System.out.println(codeString("D:\\data\\人脸.zip"));
//        System.out.println(ZipUtils.getEncoding("D:\\data\\init.zip"));
//        System.out.println(ZipUtils.getEncoding("D:\\data\\init\\init\\中国.txt"));
//        ZipUtils.decompressZip("D:\\data\\init.zip", "UTF-8", "D:\\data\\init");
//        BufferedReader read = new BufferedReader(new InputStreamReader(new FileInputStream("D:\\data\\init\\init\\中国.txt"), "GBK"));
//        System.out.println(read.readLine());

    }


}